package org.java.test;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
 * @Target注解的目标类型（ElementType.METHOD,FIELD,TYPE等）
 * @Retention注解的保留形态（RetentionPolicy.SOURCE，CLASS，RUNTIME）
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.CLASS)
public @interface MyAnnotation{
	SeasonEnum season() default SeasonEnum.SPRING;
}
enum SeasonEnum{
	SPRING,SUMMER,FALL,WINTER;
}
